
import request from '@/utils/request'
export function winelist(data) {
  return request({
    url: '/system/wine-category/list',
    method: 'get',
    data
  })
}
export function addWine(data) {
  return request({
    url: '/system/wine-category/add',
    method: 'post',
    data
  })
}
export function deleteWine(id) {
  return request({
    url: '/system/wine-category/delete',
    method: 'post',
    params:{categoryId:id}
  })
}
export function updateWine(data) {
  return request({
    url: '/system/wine-category/update',
    method: 'post',
    data
  })
}
export function wineByKey(data) {
  return request({
    url: '/system/wine-category/wineByKey',
    method: 'post',
    data
  })
}